package com.lijin.batchsys.framework.control;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lijin.batchsys.framework.enums.RunningMode;

public class BatchControlApp {

	public static void main(String[] args) {
		ApplicationContext ctx = 
			new ClassPathXmlApplicationContext("spring/app-*.xml");
		if (ctx == null) {
			System.exit(1);
		}
		BatchControl.startBatch(RunningMode.START_BATCH, "20140301", 1, 0, 0);
	}
	
}
